$shadow-color: rgb(231, 231, 231);

* {
    margin: 0;
    padding: 0;
}

html,
body {
    height: auto;
}

.head {
    height: 55px;
    line-height: 55px;
    width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 0 10px 10px $shadow-color;

    h1 {
        display: inline-block;
        margin-left: 50%;
        transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        -o-transform: translateX(-50%);

        img {
            width: 40px;
            object-fit: cover;
        }
    }
}

main {
    width: 80%;
    min-height: 800px;
    margin: 0 auto;
    max-width: 800px;
}

.upload {
    margin-bottom: 20px;
    overflow: hidden;

    .uplodfiles {
        float: left;
    }

    .right {
        float: right;
    }
}

.mainBox {
    width: 100%;
    box-shadow: 0 0 5px 5px $shadow-color;
    padding: 10px;
    overflow-y: auto;
    height: 100%;
    position: relative;
    min-height: 670px;

    li:hover::after {
        content: "点击查看详情";
        color: rgb(21, 122, 218);
        position: absolute;
        width: 100px;
        font-size: 14px;
        left: 0;
        top: -5px;
    }

    li {
        list-style-type: none;
        padding: 10px 0;
        position: relative;

        input {
            width: 21px;
            height: 21px;
            position: absolute;
            top: 50%;
            right: 5px;
            transform: translateY(-50%);
            -webkit-transform: translateY(-50%);
            -moz-transform: translateY(-50%);
            -ms-transform: translateY(-50%);
            -o-transform: translateY(-50%);
        }

        a {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 1;
            overflow: hidden;
            width: 90%;
            font-size: 1.8rem;
            position: relative;

            img {
                width: 30px;
                height: 30px;
                object-fit: cover;
                margin-right: 2px;
            }
        }
    }
}

// 文件列表为空时
.null {
    font-size: 1.5rem;
    letter-spacing: 3px;
    min-height: 670px;
    height: 90%;
    text-align: center;
    box-shadow: 0 0 5px 5px #e7e7e7;
}

// 底部
.bottomBox {
    margin-top: 20px;
    position: relative;

    // 删除反选
    .right {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        -o-transform: translateY(-50%);

        button:first-of-type {
            margin-right: 10px;
        }
    }
}

// 流媒体样式
@media only screen and (max-width: 576px) {
    .ant-pagination-total-text {
        display: none !important;
    }
}

@media (max-width: 425px) {
    .mainBox {
        li:hover::after {
            content: "";
        }
        li {
            a {
                font-size: 1rem;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 1;
                overflow: hidden;
                width: 200px;
            }

            a:hover::after {
                content: "";
            }
        }
    }

    .upload {
        .ant-btn {
            padding: 4px 5px;
            font-size: 12px;
        }
    }

    .bottomBox {
        .right {
            position: relative;
            transform: none;
            -webkit-transform: none;
            -moz-transform: none;
            -ms-transform: none;
            -o-transform: none;

            .ant-btn {
                display: block;
                width: 100%;
                margin: 10px 0;
            }
        }
    }

    .ant-pagination {
        font-size: 12px;
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}

@media (max-width: 370px) {
    .upload {
        .ant-input-group-wrapper {
            width: 160px !important;
        }
    }
}
